package com.lg.online_shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lg.online_shop.entity.Color;
import org.apache.ibatis.annotations.Select;
import java.util.List;

public interface ColorMapper extends BaseMapper<Color> {

    @Select("SELECT * FROM color WHERE good_id = #{goodId}")
    List<Color> selectColorByGoodId(Long goodId);

    @Select("SELECT * FROM color WHERE id = #{colorId}")
    List<Color> selectColorByColorId(Long colorId);
}
